package com.testauto;

import com.autoconfig.SayHello;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HelloController {

    @Autowired
    private SayHello sayHello;

    @GetMapping("/hello")
    @ResponseBody
    public String hello(){
        return sayHello.sayHello();
    }
}
